package com.lanyun.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.IEntity;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import cn.org.atool.fluent.mybatis.functions.TableSupplier;
import java.io.Serializable;
import java.lang.Class;
import java.lang.Integer;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.function.Consumer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * ImagelistEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "imagelist",
    schema = "tourist"
)
public class ImagelistEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("Id")
  private Integer Id;

  /**
   */
  @TableField("image_id")
  private Integer imageId;

  /**
   */
  @TableField("image_url")
  private String imageUrl;

  @Override
  public Serializable findPk() {
    return this.Id;
  }

  @Override
  public Consumer<Integer> pkSetter() {
    return this::setId;
  }

  @Override
  public final Class<? extends IEntity> entityClass() {
    return ImagelistEntity.class;
  }

  @Override
  public final ImagelistEntity changeTableBelongTo(TableSupplier supplier) {
    return super.changeTableBelongTo(supplier);
  }

  @Override
  public final ImagelistEntity changeTableBelongTo(String table) {
    return super.changeTableBelongTo(table);
  }
}
